package com.gismore.demo.dagger;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.gismore.demo.dagger.config.AppConfig;

import lombok.extern.log4j.Log4j2;

/**
 * 应用入口
 */
@Log4j2
public class Main {
	public static void main(String[] args) {
		AppConfig.init();
		Logger log = LogManager.getLogger(Main.class);
		log.debug("log4j2 config complete!");
		KettleComponent component = DaggerKettleComponent.builder().build();
		Kettle kettle = component.kettle();
		kettle.on();
		kettle.brew();
		kettle.off();
	}
}
